<?php

class CateAction extends Action {

	public function cate(){
		$cate = new Model('Cate');
		$item = new Model('Item');
		$id = intval($_GET['id']);
		$category = $cate->field('cate_id,cate_name')->select();
		$view = $item->where("cate_id='$id'")->select();
		$this->assign('cate',$category);
		$this->assign('view',$view);
		$this->display();

	}
}
?>